package com.project.slsx.utils;


import com.lzy.okgo.model.HttpParams;

public class ParamsUtils {
    //==================================================================================================
//收银
    //商品列表接口
    public static HttpParams getGoodslistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "goodslist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //订单提交接口
    public static HttpParams getOrderaddParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "orderadd");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //订单支付
    public static HttpParams getOrderPayParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "orderpay");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //确认入库接口
    public static HttpParams getStorageConfirm() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storageconfirm");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }


    //商品分类列表接口
    public static HttpParams getCategorylistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "categorylist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //会员卡开卡
    public static HttpParams getVipaddParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "vipadd");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //会员卡补办
    public static HttpParams getVipreplaceParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "vipreplace");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //充值
    public static HttpParams getViprechargeParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "viprecharge");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //取消订单
    public static HttpParams getOrderdeleteParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "orderdelete");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }
//==================================================================================================
//入库

    //入库总列表接口
    public static HttpParams getStoragealllistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storagealllist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }


    //入库搜索接口
    public static HttpParams getStoragesearchParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storagesearch");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }


    //加入入库列表接口
    public static HttpParams getStorageaddParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storageadd");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //入库商品修改卖价接口
    public static HttpParams getStoragepriceParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storageprice");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //入库商品修改卖价接口
    public static HttpParams getStorageoperationParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storageoperation");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //获取入库列表接口
    public static HttpParams getStoragelistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "storagelist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }
//==================================================================================================
//交班

    //交班接口
    public static HttpParams getShiftParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "shift");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //商品绑定条码接口
    public static HttpParams getGoodsbindParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "goodsbind");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

//==================================================================================================
//新盟商

    //商品绑定条码接口
    public static HttpParams getXinshangmengParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "xinshangmeng");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //==================================================================================================
//损耗
//损耗搜索接口
    public static HttpParams getLosssearchParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "losssearch");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    public static HttpParams getGoodslossParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "goodsloss");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //损耗列表接口
    public static HttpParams getLossslistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "lossslist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //采购搜索接口
    public static HttpParams getPurchasesearchParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "purchasesearch");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //获取采购列表的供应商列表接口
    public static HttpParams getPurchasesupplierlistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "purchasesupplierlist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //快速采购列表接口
    public static HttpParams getPurchaselistParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "purchaselist");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }

    //采购编辑接口
    public static HttpParams getPurchaseeditParams() {
        HttpParams httpParams = new HttpParams();
        httpParams.put("op", "purchaseedit");
        httpParams.put("token", UserManager.getUser().getToken());
        httpParams.put("uniacid", UserManager.getUser().getUniacid());
        httpParams.put("sid", UserManager.getUser().getSid());
        return httpParams;
    }
}
